package com.sy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Arrays;

@Controller
public class indexController {
    @RequestMapping("/test")
    public String index(Model model)
    {
        model.addAttribute("msg","hello,springboot");
        model.addAttribute("msg1","<h1>hello,springboot</h1>");
        model.addAttribute("users", Arrays.asList("sy","zc"));
        return "test";
    }
}
